export default {
  data() {
    return {
      // 会员等级列表
      userLevelList: [],
      levelLoading: false
    }
  },
  methods: {
    // 获取会员等级列表
    async getUserLevelList() {
      this.levelLoading = true
      try {
        const res = await this.$api.setting.getUserLevelList({
          current_page: 1,
          page_number: 10000
        })
        if (res.code === 1) {
          this.userLevelList = res.data
        }
        this.levelLoading = false
      } catch (error) {
        this.levelLoading = false
      }
    }
  }
}
